# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=htmldoc
pkgver=1.9.17
pkgrel=0
pkgdesc="HTML conversion software"
url="https://www.msweet.org/htmldoc"
arch="all"
license="GPL-2.0-only"
options="!check" # no test suite
makedepends="cups-dev fltk-dev libpng-dev libjpeg-turbo-dev zlib-dev"
source="https://github.com/michaelrsweet/htmldoc/archive/v$pkgver/htmldoc-v$pkgver.tar.gz"
subpackages="$pkgname-doc"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
b7075c8cb9ae195a7ebb45d3effd8defe8e349985867ba0b3adce75df7101f04fdaa2b645d77cc3b5481599e8d05e5a956d5b3d59817e121390954b64c9b5e01  htmldoc-v1.9.17.tar.gz
"
